<html>
<head><meta charset="utf-8"><title>LLVM for stage 0? · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20for.20stage.200.3F.html">LLVM for stage 0?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="172874619"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20for%20stage%200%3F/near/172874619" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20for.20stage.200.3F.html#172874619">(Aug 09 2019 at 18:09)</a>:</h4>
<p>Why does <code>x.py</code> build LLVM when I do <code>./x.py test --stage 0 src/test/ui</code>? that seems odd</p>



<a name="172875256"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20for%20stage%200%3F/near/172875256" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20for.20stage.200.3F.html#172875256">(Aug 09 2019 at 18:17)</a>:</h4>
<p>hm, I suspect that builds a full compiler toolchain?</p>



<a name="172875269"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20for%20stage%200%3F/near/172875269" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20for.20stage.200.3F.html#172875269">(Aug 09 2019 at 18:18)</a>:</h4>
<p>and/or it presumes we need an LLVM for UI tests which might be true for some (i.e., they're run-pass tests so generally speaking you do somewhat need an LLVM)</p>



<a name="172875324"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20for%20stage%200%3F/near/172875324" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20for.20stage.200.3F.html#172875324">(Aug 09 2019 at 18:18)</a>:</h4>
<p>basically it comes down to "imprecise dependency tracking" which is a staple of x.py</p>



<a name="172875845"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20for%20stage%200%3F/near/172875845" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20for.20stage.200.3F.html#172875845">(Aug 09 2019 at 18:24)</a>:</h4>
<p>I first thought this was a recent regression but actually I dont think I ever tried running UI tests on stage 0</p>



<a name="172880063"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20for%20stage%200%3F/near/172880063" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20for.20stage.200.3F.html#172880063">(Aug 09 2019 at 19:06)</a>:</h4>
<p>it's ... a bit weird</p>



<a name="172880078"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20for%20stage%200%3F/near/172880078" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20for.20stage.200.3F.html#172880078">(Aug 09 2019 at 19:07)</a>:</h4>
<p>since you're testing presumably against a boostrap compiler? which is like old so the UI tests are likely to fail</p>



<a name="172880100"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20for%20stage%200%3F/near/172880100" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20for.20stage.200.3F.html#172880100">(Aug 09 2019 at 19:07)</a>:</h4>
<p>and if you are not testing against a bootstrap compiler then you're not really in stage0</p>



<a name="172884367"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20for%20stage%200%3F/near/172884367" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20for.20stage.200.3F.html#172884367">(Aug 09 2019 at 20:01)</a>:</h4>
<p>yeah I wanted to use the bootstrap compiler</p>



<a name="172884372"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20for%20stage%200%3F/near/172884372" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20for.20stage.200.3F.html#172884372">(Aug 09 2019 at 20:01)</a>:</h4>
<p>for the particular UI test I was editing, it's good enough</p>



<a name="172884382"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20for%20stage%200%3F/near/172884382" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> RalfJ <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20for.20stage.200.3F.html#172884382">(Aug 09 2019 at 20:01)</a>:</h4>
<p>and I wanted to avoid building an entire rustc</p>



<a name="172885665"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/LLVM%20for%20stage%200%3F/near/172885665" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/LLVM.20for.20stage.200.3F.html#172885665">(Aug 09 2019 at 20:19)</a>:</h4>
<p>yeah I suspect no one has thought of that scenario so... we don't support it :)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>